<template>
  <div class="luntai_wrapper">
    <van-image class="pic" :src="item.thumbnail" />
    <div class="right">
      <div class="name">{{ item.goodsName }}</div>
      <!-- <div class="tips">
        <div class="text_1">轮胎型号 |</div>
        <div class="text_1">速度：300km/h |</div>
        <div class="text_1">载重：675kg</div>
      </div> -->
      <div class="flex">
        <div style="display: flex">
          <div class="discount">￥{{ item.price }}</div>
          <div class="price">￥{{ item.originalPrice }}</div>
        </div>
        <div class="btn">购买</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "luntaiItem",
  components: {},
  props: {
    item: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  watch: {},
  computed: {},
  methods: {
    goToBuy() {
      this.$emit("buy");
    },
  },
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.luntai_wrapper {
  width: 100%;
  padding: 60px 40px;
  background: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-radius: 20px;
  .pic {
    min-width: 240px;
    max-width: 240px;
    height: 240px;
  }
  .right {
    margin-left: 25px;
    flex-grow: 1;
    .name {
      font-size: 46px;
      color: #333;
      margin-bottom: 20px;
    }
    .tips {
      font-size: 35px;
      color: #000;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .text_1 {
        padding: 0 5pxpx;
      }
    }
    .flex {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .discount {
      font-size: 46px;
      color: #c10500;
      font-weight: bold;
      margin-right: 10px;
    }
    .price {
      font-size: 46px;
      color: #000;
      text-decoration-line: line-through;
    }
    .btn {
      height: 80px;
      line-height: 80px;
      padding: 0 30px;
      color: #fff;
      font-size: 44px;
      background-color: #e73353;
      border-radius: 999px;
    }
  }
}
</style>